package controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;

public class BtnCloseAction implements ActionListener {

	private JFrame fDispose;
	private JFrame fShow;

	public BtnCloseAction(JFrame fDispose, JFrame fShow) {
		this.fDispose = fDispose;
		this.fShow = fShow;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		fDispose.dispose();
		fShow.setVisible(true);
	}

}
